extends "../zhiqizhe-1/zhiqizhe-1.gd"
func _extInit():
	._extInit()
	chaName = "「塞壬」执棋者I型"
	lv = 2             #等级的设置
	addSkill("炮击对当前目标身后一排的所有单位造成[雷击*1]的技能伤害", "翻山炮")

func _onNormalAtk(cha):
	._onNormalAtk(cha)
	if not cha.isDeath:
		qx(cha)

func qx(cha):
	var eff:Eff = newEff("sk_feiZhan",sprcPos)
	eff._initFlyPos(position + (cha.position - position).normalized() * 800, 800)
	eff.connect("onInCell",self,"effInCell")

func effInCell(cell):
	var cha = matCha(cell)
	if cha != null and cha.team != team :
		azurHurtChara(cha, min(cha.att.maxHp, att.mgiAtk), sys.HurtType.WEAPON, sys.AtkType.SKILL, "翻山炮")
